


//定义变量
const state = {
    list: [] //错误列表
}

//获取
var getters = {
    getList(state) {
        return state.list;
    }
}

//设置
const mutations = {
    add(state, val) {
        state.list.unshift(val);
    },
}

//异步
const actions = {
}



export default {
    namespaced:true,
    state,
    getters,
    actions,
    mutations,
}